<?php

use Illuminate\Routing\Router;

Admin::registerAuthRoutes();

Route::group([
    //在config/admin.php中调整前缀
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function(Router $router){
    $router->get('/', 'HomeController@index');
    $router->resources([
        //系统设置
        'sys/sysPlatform' => 'SysManage\SysPlatformController',
        'sys/sysparams' => 'SysManage\SysParamsController',

        //聊天室管理
        'chat/chatroom' => 'ChatManage\ChatRoomController',
        'chat/chatroomuser' => 'ChatManage\ChatRoomUserController',
    ]);
});
